// # -*- mode: c++ -*-
#pragma once
#include <array>

#include <ttl/bits/std_def.hpp>
#include <ttl/bits/std_range.hpp>
#include <ttl/bits/std_tensor_fwd.hpp>

namespace ttl
{
using internal::range;
using internal::range1;

template <rank_t r, typename R, typename S, typename D, typename A>
auto range(const internal::basic_tensor<R, S, D, A> &t)
{
    return range(std::get<r>(t.dims()));
}
}  // namespace ttl
